# models.py
from django.db import models

class Employee(models.Model):
    Eid = models.CharField(max_length=10, primary_key=True)
    EName = models.CharField(max_length=10, null=False)
    EPas = models.CharField(max_length=10, null=False, default='000000')
    Elevel = models.CharField(max_length=2, null=False)
    EtelPhone = models.CharField(max_length=11, null=False)
    ESalary = models.IntegerField(null=True, blank=True)
    other = models.CharField(max_length=20, blank=True, null=True)

    class Meta:
        db_table = 'tb_employee'
